#include <iostream>
#include <cstdlib>

class Test {
public:
    Test() { std::cout << "Constructor called\n"; }
    ~Test() { std::cout << "Destructor called\n"; }
};

int main() {
    Test t;
    std::cout << "Before exit\n";
    exit(0);  // 直接退出
    std::cout << "After exit (unreachable)\n";
    return 0;
}